package com.syc.mybatis;

import org.junit.Test;

import com.syc.mybatis.dao.PersonDao;
import com.syc.mybatis.domain.Person;

public class DaoTest {

	@Test
	public void test1(){
		PersonDao dao=new PersonDao();
		Person person = dao.findById(2);
		System.out.println(person.toString());
		System.out.println(person.getCard().toString());
	}
	
	@Test
	public void test2(){
		PersonDao dao=new PersonDao();
		Person person = dao.findByName("李逵");
		System.out.println(person.toString());
		System.out.println(person.getCard().toString());
	}
	
}
